package com.heima.schedule;

import com.heima.feign.clients.ScheduleClient;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;


@SpringBootApplication
@MapperScan("com.heima.schedule.mapper")
//@EnableFeignClients(clients = ScheduleClient.class)   //开启feign客户端支持，注意这个注解只能加到启动类上
@EnableScheduling    //开启定时任务扫描
public class ScheduleApplication {
    public static void main(String[] args) {
        SpringApplication.run(ScheduleApplication.class, args);
    }
}
